import { http } from "@/utils/http";
/**
 * Item
 */
export interface Item {
  key: string;
  lastModified: string;
  eTag: string;
  size: number;
  isDir: boolean;
  bucketName: string;
  versionId: string;
  lastModifiedDateTime: string;
}

export class StorageApi {
  /**
   * 无
   */
  public getList(): Promise<Array<Item>> {
    return http.request({
      url: "/api/storage/getList",
      method: "post"
    });
  }
}
export default new StorageApi();
